package com.lqg.bookLibrary.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author prodigal_lqg
 * @since 2023-04-09 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("score")
public class Score implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评分表id
     */
    @TableId("score_id")
    private Long scoreId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 图书id
     */
    @TableField("book_id")
    private Long bookId;

    /**
     * 评分成绩
     */
    @TableField("score_num")
    private Integer scoreNum;


    public Score(Long userId, Long bookId, Integer scoreNum) {
        this.userId = userId;
        this.bookId = bookId;
        this.scoreNum = scoreNum;
    }


}
